<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./rem.js"></script>
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    html,
    body {
      height: 100%;
    }

    .warn {
      /* 根元素大小100px */
      max-width: 6.4rem;
      height: 100%;
      background-color: aqua;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
    }

    .search {
      height: 0.5rem;
      background-color: red;
    }

    .footer {
      height: 0.6rem;
      background-color: beige;
    }

    .content {
      flex: 1;
      background-color: blue;
      overflow-y: auto;
    }
  </style>
</head>

<body>
  <div class="warn">
    <!-- 搜索栏 -->
    <div class="search"></div>
    <!-- 内容区域 -->
    <div class="content">
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
      <h1>1111</h1>
    </div>
    <!-- 底部导航 -->
    <div class="footer"></div>
  </div>
</body>

</html>